<style type="text/css"><?php for ($i=$loop;$i<($loop+$loop_count);$i++): ?>#_<?php echo $i; ?>{<?php if($loop_display == $i): ?>display:block;<?php else: ?>display:none;<?php endif; ?>}<?php endfor; ?></style>
<div class="bg">
  <div class="container content-container">
    <div class="row">
      <div class="col-lg-6 col-sm-6">

        <!-- begin: error messages -->
        <?php if(count($error)>0): ?>
            <?php foreach($error as $err): ?>
              <p class="bg-danger"><?php echo $err; ?></p>
            <?php endforeach; ?>
        <?php endif; ?>
        <!-- end: error messages -->

        <?php if ($sent === true): ?>
        <p class="bg-success">Your contact request was send!</p>
        <?php endif; ?>

        <form role="form" name="form_contact" id="form_contact" method="post" action="<?php echo $basePath; ?>/gospecies/contact/dos" accept-charset="utf-8">

          <div class="input-group  input-group-md">
            <span class="input-group-addon"><i class="fa fa-envelope-o fa-fw"></i></span>
            <input type="email" class="form-control input-md" name="contact_email" id="exampleInputEmail" placeholder="Enter email" value="<?php if(isset($contact_email)) echo $escape->escapeHtmlAttr($contact_email); ?>">
          </div>

          <br>

          <div class="form-group">
            <textarea class="form-control input-md" placeholder="Enter contact information" name="contact_content" id="contact_content" cols="50" rows="10"><?php if(isset($contact_content)) echo $escape->escapeHtmlAttr($contact_content); ?></textarea>
          </div>

          <div class="form-group">
          <?php for ($i=$loop;$i<($loop+$loop_count);$i++): ?>
          <button type="submit" name="_<?php echo $i; ?>" id="_<?php echo $i; ?>" class="btn btn-primary"value="Submit" />Submit</button>
          <?php endfor; ?>
          </div>

        </form>

      </div>
    </div>
  </div>
</div>